<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
		<style type="text/css">
			.box {
				width: 200px;
				height: 200px;
				border: 1px solid red;
				text-align: center;
			}

			.box::after {
				content: '';
				display: inline-block;
				vertical-align: middle;
				height: 100%;
			}

			img {
				height: 70%;
				vertical-align: middle;
			}
		</style>
	</head>

	<body>
		<div id="app">
			<div class="box">
				<img
					src="https://t7.baidu.com/it/u=1595072465,3644073269&fm=193&f=GIF?id=1"
				/>
			</div>
		</div>
	</body>
</html>
